package com.cskaoyan.bean.wx_home_index;

import com.cskaoyan.bean.promotion.topic.Topic;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description:
 * @Author: WD created on 2021-09-18 17:09
 * @Version:
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class InnerTopic {


    private Integer id;
    private String title;
    private String subtitle;
    private BigDecimal price;
    private String readCount;
    private String picUrl;


    public InnerTopic(Topic topic) {

        this.id = topic.getId();
        this.title = topic.getTitle();
        this.subtitle = topic.getSubtitle();
        this.price = topic.getPrice();
        this.readCount = topic.getReadCount();
        this.picUrl = topic.getPicUrl();

    }
}
